<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@include file="inc/head.jsp" %>

<div class="main">
    <div class="leftmain">
        <!--面包屑-->
        <div class="rights">
            <div class="breadcrumbgezi gezidi">
                <b>当前位置：</b>&nbsp;&nbsp;<a><b>首页</b></a> >
                <a>新闻中心</a> >
                <c:choose>
                    <c:when test="${categoryId eq 1}">
                        <span class="last">行业动态</span>
                    </c:when>
                    <c:when test="${categoryId eq 2}">
                        <span class="last">协会动态</span>
                    </c:when>
                    <c:when test="${categoryId eq 3}">
                        <span class="last">企业动态</span>
                    </c:when>
                    <c:otherwise>
                        <span class="last">政府动态</span>
                    </c:otherwise>
                </c:choose>
            </div>
            <div class="dongtailie">
                <c:forEach var="news" items="${page.result}">
                    <div class="danli">
                        <h1><span>${news.publishDate}</span><a href="/news/${news.id}" summary="${news.summary}">${fn:substring(news.title, 0, 26)}</a></h1>

                        <p>
                            <c:if test="${not empty news.summary}">
                                ${news.summary}
                            </c:if>
                            <c:if test="${empty news.summary}">
                                ${fn:substring(news.contentText, 0, 80)}...
                            </c:if>
                        </p>

                        <h2>[<a href="/news/${news.id}">查看全文</a>] </h2>
                    </div>
                </c:forEach>
            </div>
            <%@include file="pagebar.jsp"%>
        </div>

        <div class="lefts">
            <div class="leftmainb">
                <h1>
                </h1>

                <div>
                    <ul>
                        <li>
                            <a href="/notices/pages/1"> 通知公告</a>
                        </li>
                        <c:if test="${categoryId eq 1}">
                        <li class="ctx">
                        </c:if>
                        <c:if test="${categoryId ne 1}">
                        <li>
                        </c:if>
                            <a href="/news/1/pages/1"> 行业动态</a>
                        </li>
                        <c:if test="${categoryId eq 2}">
                        <li class="ctx">
                        </c:if>
                        <c:if test="${categoryId ne 2}">
                        <li>
                        </c:if>
                            <a href="/news/2/pages/1"> 协会动态</a>
                        </li>
                        <c:if test="${categoryId eq 3}">
                        <li class="ctx">
                        </c:if>
                        <c:if test="${categoryId ne 3}">
                        <li>
                        </c:if>
                            <a href="/news/3/pages/1"> 企业动态</a>
                        </li>
                        <c:if test="${categoryId eq 4}">
                        <li class="ctx">
                        </c:if>
                        <c:if test="${categoryId ne 4}">
                        <li>
                        </c:if>
                            <a href="/news/4/pages/1"> 政府动态</a>
                        </li>
                        <li>
                            <a href="#"> 专栏专题</a>
                            <%--<a href="/specialTopics"> 专栏专题</a>--%>
                        </li>
                    </ul>
                </div>
            </div>


            <!--左边到底-->
        </div>
    </div>

    <div class="rightmain">
        <%@include file="inc/right.jsp" %>
    </div>

</div>
<%@include file="inc/footer.jsp" %>
